package dk.ucn.datamatiker.henrik.bundtkage.earthcake.albeheweather;

import java.util.ArrayList;

public class States {
	private static States instance;
	private Location currentLocation;
	private ArrayList<Location> locations;
	private String locationPreference;
	private AlBeHeWeatherActivity localWeatherView;

	private States() {
		this.locations = new ArrayList<Location>();
		this.currentLocation = null;
	}

	public static States getInstance() {
		if (instance == null) {
			instance = new States();
		}
		return instance;
	}

	public Location getCurrentLocation() {
		return currentLocation;
	}

	public void setCurrentLocation(Location currentLocation) {
		this.currentLocation = currentLocation;
	}

	public ArrayList<Location> getLocations() {
		return locations;
	}

	public void setLocations(ArrayList<Location> locations) {
		this.locations = locations;
	}

	public String getLocationPreference() {
		return locationPreference;
	}

	public void setLocationPreference(String locationPreference) {
		this.locationPreference = locationPreference;
	}

	public AlBeHeWeatherActivity getLocalWeatherView() {
		return localWeatherView;
	}

	public void setLocalWeatherView(AlBeHeWeatherActivity localWeatherView) {
		this.localWeatherView = localWeatherView;
	}

}
